#ifndef __APP_POOL_H__
#define __APP_POOL_H__

#include "log.h"
#include <mqueue.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>

#define MQUEUE_MAXMSG 10
#define MQUEUE_NAME "/mq_test"

typedef struct{
    void* (*func)(void *);
    void *arg;
} task_t;

int app_pool_init(int thread_num);

int app_pool_register_task(void *(*task_func)(void *), void *arg);

void app_pool_destroy(void);


#endif /* __APP_POOL_H__ */

